<!DOCTYPE html>
<html   xmlns="http://www.w3c.org/1999/xhtml"
        xmlns:h="http://java.sun.com/jsf/html"
        xmlns:p="http://primefaces.org/ui"
        xmlns:f="http://xmlns.jcp.org/jsf/core">
    <h:head/>
    <h:body>
        <h:form enctype="multipart/form-data">
            <p:fileUpload value="#{fileUploadBean.file}" mode="simple" />
            <p:commandButton value="Submit" ajax="false"/>
        </h:form>
        
        <h:form>
            <p:fileUpload fileUploadListener="#{fileUploadBean.handleFileUpload}" multiple="true" />
        </h:form>
        
        <h:form>
            <p:fileUpload fileUploadListener="#{fileUploadBean.handleFileUpload}" multiple="true" auto="true" update="msg" />
            <p:growl id="msg" />
        </h:form>
        
    </h:body>
</html>
